using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LANamp
{
    public partial class frmIndexing : Form
    {
        public delegate void UpdateStatusEvent(string newStatus);
        public delegate void UpdateLocationEvent(string newLocation);
        public delegate void UpdateFolderEvent(string newFolder);
        public delegate void SetProgresEvent(int progress);
        public delegate void ResetProgressEvent(int maxValue);
        public delegate void MarqueeProgressEvent();

        public frmIndexing()
        {
            InitializeComponent();
        }

        public void UpdateStatus(string newStatus)
        {
            labStatus.Text = newStatus;
            labStatus.Update();
        }

        public void UpdateFolder(string newFolder)
        {
            labFolder.Text = newFolder;
            labFolder.Update();
        }

        public void SetTotalProgress(int progress)
        {
            pbTotalProgress.Value = progress;
            statusStrip.Update();
        }

        public void UpdateLocation(string text)
        {
            labLocation.Text = text;
            labLocation.Update();
        }

        public void SetProgress(int progress)
        {
            pbProgress.Value = progress;
            pbProgress.Update();
        }

        public void ResetProgress(int maxValue)
        {
            pbProgress.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
            pbProgress.Maximum = maxValue;
            Update();
        }

        public void MarqueeProgress()
        {
            pbProgress.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
            pbProgress.Update();
        }

        private void frmIndexing_Activated(object sender, EventArgs e)
        {
            Update();
        }

        private void labStatus_Click(object sender, EventArgs e)
        {

        }

        private void progressBar1_Click(object sender, EventArgs e)
        {

        }

        private void frmIndexing_Load(object sender, EventArgs e)
        {

        }

    }
}